import { createRouter, createWebHistory } from 'vue-router'
//路由对象
const router = createRouter({
    history: createWebHistory(process.env.BASE_URL),
    routes: [
        {
            path: "/",
            redirect:"/Department"
        },        
        {
        path: "/department",
        name: "department",
        component: () => import("../page/Department")
        } ,
        {
            path: "/oran",
            name: "oran",
            component: () => import("../page/Oran")
        } 
        
    ]
})

export default router;